var express = require('express');
var router = express.Router();
var log4js = require('../plugin/logs');
var {connection} = require('../plugin/mysql');
var log = log4js.getLogger("response");

// middleware that is specific to this router
router.use(function timeLog (req, res, next) {
  log.error('Time: ', Date.now());
  next();
});
// define the home page route
router.post('/', function (req, res) {
    let data = req.body;
    // res.send(process.env.NODE_ENV);
    console.log(connection("user"))
    res.send(connection("user"))
});


module.exports = router;